package com.example.dr

import com.example.dr.bean.CommonBean
import com.example.dr.bean.RandomValBean
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface Api {
    @GET("fapig/pwdgenerator/generate")
    fun getRandomVal(
        @Query("len") len: Int = 16,
        @Query("t") t: String,
        @Query("key") key: String = "c9ba08884fdecd4391961fedf13122bd",
    ): Single<CommonBean<RandomValBean>>
}